1 00:00:00,490 --> 00:00:05,830 Now I want to make a place that we can teleport to, and we're going to set it up as a reserve server. 2 00:00:05,830 --> 00:00:12,250 So once the battle is initiated and the group gets teleported, no one else can enter. 3 00:00:12,280 --> 00:00:14,800 For now, we're just going to teleport ourself. 4 00:00:14,800 --> 00:00:20,920 Let's go to not home, not model view, right the view tab. 5 00:00:20,920 --> 00:00:23,140 And then I have them all mushed together. 6 00:00:23,140 --> 00:00:26,140 But it's this one right here up in the upper left. 7 00:00:26,140 --> 00:00:29,110 If you hover over it says Asset Manager. 8 00:00:29,290 --> 00:00:31,060 Let's go ahead and click on that. 9 00:00:31,060 --> 00:00:32,950 This is our asset manager. 10 00:00:33,070 --> 00:00:40,360 We have something called Places We can right click and it says Add New Place when we click on Add New 11 00:00:40,360 --> 00:00:41,170 Place. 12 00:00:41,880 --> 00:00:43,800 This is the new place that got added. 13 00:00:43,800 --> 00:00:48,290 So it has your name and then just a place number and it's just a base plate. 14 00:00:48,300 --> 00:00:54,090 Let's go ahead and rename it to something like Battle Royale. 15 00:00:54,090 --> 00:00:56,640 Battle Royale. 16 00:00:56,790 --> 00:00:57,600 There we go. 17 00:00:57,600 --> 00:01:00,360 And we can open it by double clicking right here. 18 00:01:01,100 --> 00:01:02,090 That's going to take a minute. 19 00:01:02,090 --> 00:01:04,160 I'll just pause the video while it's opening up. 20 00:01:06,890 --> 00:01:07,760 And here we go. 21 00:01:07,760 --> 00:01:09,690 We have our fresh place. 22 00:01:09,710 --> 00:01:11,420 Now, there's nothing in it. 23 00:01:11,420 --> 00:01:12,530 There's no scripts. 24 00:01:12,530 --> 00:01:16,430 But you do have access to your data store. 25 00:01:16,430 --> 00:01:21,500 From your experience from the original game, this is an extension of that game. 26 00:01:21,500 --> 00:01:28,820 If you go to game settings under security, you'll notice that enable studio access to API services 27 00:01:28,820 --> 00:01:30,560 is already checked on. 28 00:01:30,560 --> 00:01:32,060 That's pretty convenient. 29 00:01:32,300 --> 00:01:39,700 Now let's go ahead and get the ID for this and put it in our game so that we can teleport here. 30 00:01:39,710 --> 00:01:45,320 I'm going to switch back to my other game and there's my original game and we're back. 31 00:01:45,620 --> 00:01:49,700 So I am going to right click on this battle royale. 32 00:01:50,690 --> 00:01:53,790 And then I'm going to copy ID to the clipboard. 33 00:01:53,810 --> 00:01:57,020 That's the ID that gets you to the other place. 34 00:01:57,020 --> 00:01:57,950 The other world. 35 00:01:58,340 --> 00:02:02,000 I'm going to go over to my bottle wall if you don't have it open. 36 00:02:02,270 --> 00:02:05,050 It's under your workspace bottle wall. 37 00:02:05,060 --> 00:02:08,480 Remember we had this string value right here. 38 00:02:08,810 --> 00:02:16,010 I'm going to go to the value on the string value, and I'll just do a paste and I'll hit enter. 39 00:02:16,040 --> 00:02:17,100 There we go. 40 00:02:17,120 --> 00:02:22,670 Now we have the ID that we can tell the teleportation service to get us to our new world. 41 00:02:23,800 --> 00:02:28,120 Let's write the code that's going to teleport us to our new world. 42 00:02:28,120 --> 00:02:32,530 When we press this green button, we're not going to initiate the whole bottle. 43 00:02:32,530 --> 00:02:33,910 We're just going to teleport. 44 00:02:33,910 --> 00:02:36,730 But I'm going to do the private server stuff. 45 00:02:36,730 --> 00:02:39,910 So let's close our asset manager so we have more room. 46 00:02:39,910 --> 00:02:44,560 And then under the battle wall, double click initiate battle. 47 00:02:44,770 --> 00:02:46,810 Let's add a little bit of code. 48 00:02:47,680 --> 00:02:49,450 Go ahead and get rid of your print statement. 49 00:02:51,250 --> 00:02:55,450 We're going to get our clicker from our button, right? 50 00:02:55,450 --> 00:02:59,360 So we'll do the little click detector, We'll do local. 51 00:02:59,380 --> 00:03:00,540 I'm going to call it clicker. 52 00:03:00,550 --> 00:03:04,840 That's why I said clicker where the script dot parent. 53 00:03:04,840 --> 00:03:07,150 That's the battle wall, the model. 54 00:03:07,150 --> 00:03:12,340 And then we're going to go down a level to our button and then we're going to go down one more level 55 00:03:12,340 --> 00:03:13,600 to our click detector. 56 00:03:15,070 --> 00:03:16,090 There it is. 57 00:03:16,480 --> 00:03:16,810 All right. 58 00:03:16,810 --> 00:03:17,730 What else do I need? 59 00:03:17,740 --> 00:03:27,430 I need my place ID, so I'll do a local place ID and we could do script parent again. 60 00:03:27,430 --> 00:03:30,580 I guess I could have made a variable to shorten that a little bit. 61 00:03:31,180 --> 00:03:36,460 Place ID and place ID has a value and that's the ID. 62 00:03:37,480 --> 00:03:40,300 I'm going to get the teleportation service. 63 00:03:40,300 --> 00:03:44,440 I'll just call it TS Teleportation service game. 64 00:03:44,620 --> 00:03:48,430 Get service teleportation servers. 65 00:03:48,430 --> 00:03:50,380 Oh, I always say teleportation service. 66 00:03:50,380 --> 00:03:53,830 It's teleport service, Right, Teleport service. 67 00:03:53,830 --> 00:03:55,330 But I'll make that mistake again. 68 00:03:55,330 --> 00:03:56,590 So just keep reminding yourself. 69 00:03:56,590 --> 00:03:57,820 No teleport service. 70 00:03:57,820 --> 00:03:59,500 He just does that all the time. 71 00:03:59,890 --> 00:04:01,060 All right, What else do I need? 72 00:04:01,060 --> 00:04:02,950 Oh, I'm going to get a player queue. 73 00:04:02,950 --> 00:04:04,330 I might as well initialize it now. 74 00:04:04,330 --> 00:04:04,870 I'm not going to. 75 00:04:04,870 --> 00:04:07,570 I'm going to use it to put myself in it. 76 00:04:07,570 --> 00:04:11,860 Everybody in the queue is going to get teleported, but we're just going to put ourself in the queue 77 00:04:11,860 --> 00:04:13,510 for for now for this lesson. 78 00:04:13,510 --> 00:04:19,630 So let's do player queue and I'll just make that an empty table. 79 00:04:21,270 --> 00:04:23,580 I'm just going to start out with two functions. 80 00:04:24,000 --> 00:04:27,060 We're going to do a function to send the players. 81 00:04:28,740 --> 00:04:29,790 And I'll use that player. 82 00:04:29,790 --> 00:04:31,920 Q to determine who gets sent. 83 00:04:32,040 --> 00:04:37,710 And I'm going to do another function, local function called start registration. 84 00:04:39,870 --> 00:04:42,130 And player is going to get passed in. 85 00:04:42,150 --> 00:04:44,770 That's the player that starts the registration. 86 00:04:44,790 --> 00:04:49,740 And the reason we can get that player really easy is because we have the click detector. 87 00:04:50,070 --> 00:04:51,750 Mouse click. 88 00:04:52,410 --> 00:04:55,950 Connect that to our start registration. 89 00:04:56,220 --> 00:04:58,980 Get rid of those two extra parentheses down here. 90 00:04:58,980 --> 00:05:02,010 The roadblocks always adds, but we'll cause an error. 91 00:05:02,640 --> 00:05:07,580 And when we call start registration from the mouse, click on the click detector. 92 00:05:07,590 --> 00:05:10,860 The player who clicked the mouse is going to get passed in. 93 00:05:12,150 --> 00:05:16,110 Now, we're not going to do a lot of start registration right now because we don't have a UI and things 94 00:05:16,110 --> 00:05:24,200 like that, but we can put our player in the queue and then send them over or send her over. 95 00:05:24,210 --> 00:05:26,540 So I'll do this table insert. 96 00:05:26,550 --> 00:05:31,590 We have our player queue that has the table with all the players do comma player. 97 00:05:31,590 --> 00:05:33,790 So we've got a table with one player. 98 00:05:33,810 --> 00:05:39,540 Now when that's populated, we're just going to do send players. 99 00:05:40,020 --> 00:05:42,330 Whoever is in here is going to get sent. 100 00:05:42,810 --> 00:05:49,890 And since we're going to do a private server or a reserve server, I should say reserved server, we're 101 00:05:49,890 --> 00:05:51,780 going to need a code, right? 102 00:05:51,780 --> 00:05:55,710 So that you need that code to get into the reserve server. 103 00:05:56,370 --> 00:05:58,380 I'm going to use my teleportation service. 104 00:05:58,380 --> 00:06:02,160 Oh, teleport service, teleport service. 105 00:06:02,160 --> 00:06:06,240 And then I'll do reserve server. 106 00:06:08,860 --> 00:06:09,640 Nice. 107 00:06:09,670 --> 00:06:12,660 And now we need our place ID, Right. 108 00:06:12,670 --> 00:06:15,070 So we got place ID Now we've got a code. 109 00:06:15,810 --> 00:06:18,480 For a reserve server where you can get in. 110 00:06:19,020 --> 00:06:21,330 I'm going to do the teleportation service. 111 00:06:21,360 --> 00:06:24,150 Teleport service again. 112 00:06:24,150 --> 00:06:28,130 And we got teleport to a private server, right? 113 00:06:28,200 --> 00:06:30,630 So you can read up on those if you know how to do one. 114 00:06:30,630 --> 00:06:35,850 It's not hard to figure out how to do the other types of other types of teleport service, teleporting, 115 00:06:36,330 --> 00:06:38,160 teleporting to the server. 116 00:06:38,280 --> 00:06:38,700 All right. 117 00:06:38,700 --> 00:06:41,910 So we're going to need the place ID where we're going. 118 00:06:42,030 --> 00:06:46,800 We're going to need the code because it's a private server, and then we're going to need the players 119 00:06:46,800 --> 00:06:47,850 are going to get teleported. 120 00:06:47,850 --> 00:06:49,410 In this case, it's just me. 121 00:06:49,410 --> 00:06:50,760 But we're going to put more in there. 122 00:06:50,760 --> 00:06:53,790 People who accept, they're going to they're all going to be able to go over. 123 00:06:54,930 --> 00:06:55,230 All right. 124 00:06:55,230 --> 00:06:56,170 That's pretty good. 125 00:06:56,190 --> 00:06:57,570 This should work. 126 00:06:57,600 --> 00:06:59,370 Here's the downside. 127 00:06:59,370 --> 00:07:01,980 We can't teleport from Roadblock studio. 128 00:07:01,980 --> 00:07:04,020 We're going to have to play the game. 129 00:07:04,110 --> 00:07:04,740 Oh, you know what? 130 00:07:04,740 --> 00:07:06,510 I'm going to add one more line of code here. 131 00:07:07,650 --> 00:07:14,770 I'm going to say player Q After we do the teleport empty, so we make the table empty. 132 00:07:14,790 --> 00:07:17,070 All right, let's save this off. 133 00:07:17,850 --> 00:07:24,330 Published a row box, and I'm going to go to my website, bring up my roadblocks account, and look 134 00:07:24,330 --> 00:07:25,380 for this game. 135 00:07:27,240 --> 00:07:29,140 All right, I got the website open. 136 00:07:29,160 --> 00:07:31,930 I'm logged in as SIM Tech Nitro one. 137 00:07:31,950 --> 00:07:34,020 We're going to go under create. 138 00:07:36,560 --> 00:07:39,050 And this changes all the time. 139 00:07:39,050 --> 00:07:41,470 So if you can't find it, you'll have to click around. 140 00:07:41,480 --> 00:07:47,660 You might have some blank screen and it'll have like start, create, and underneath it'll say like 141 00:07:47,660 --> 00:07:50,280 manage something or manage creations. 142 00:07:50,300 --> 00:07:52,100 Go ahead and just click that link underneath. 143 00:07:52,100 --> 00:07:53,600 You'll get something similar to this. 144 00:07:53,600 --> 00:07:54,610 This is brand new. 145 00:07:54,620 --> 00:07:55,940 All right, here's my game. 146 00:07:55,940 --> 00:07:57,080 This is the one I was doing. 147 00:07:57,080 --> 00:07:59,690 I made it public because I wanted to test it with my alt. 148 00:07:59,720 --> 00:08:01,490 Let's go ahead and click on this. 149 00:08:02,730 --> 00:08:05,730 And we'll say a view on roadblocks. 150 00:08:07,890 --> 00:08:08,980 Cool. 151 00:08:09,000 --> 00:08:11,580 And then I'm going to hit play, right? 152 00:08:11,610 --> 00:08:13,780 And this is going to start at the roadblocks player. 153 00:08:13,800 --> 00:08:20,580 I'm going to be able to enter my zombie game and then I should be able to teleport to my new place. 154 00:08:21,580 --> 00:08:22,090 Oh, look at that. 155 00:08:22,090 --> 00:08:22,690 It's upgrading. 156 00:08:22,690 --> 00:08:23,830 I'm going to pause the video. 157 00:08:24,310 --> 00:08:25,460 All right, here we go. 158 00:08:25,480 --> 00:08:26,650 That took like 5 minutes to. 159 00:08:26,650 --> 00:08:29,840 I haven't I haven't played roadblocks player in a while. 160 00:08:29,860 --> 00:08:31,570 Oh, you blew your streak. 161 00:08:31,570 --> 00:08:32,620 That's all right. 162 00:08:33,100 --> 00:08:36,760 And we've got Chuck Norris down there kicking away zombies. 163 00:08:38,590 --> 00:08:40,420 Let's go over to our game. 164 00:08:41,550 --> 00:08:45,660 Click to initiate battle, and that's going to take a minute. 165 00:08:45,930 --> 00:08:51,390 Teleportation failed attempt to teleport to this place that is restricted. 166 00:08:53,160 --> 00:08:58,320 Literally 20 minutes later, I found out what our problem was with our teleportation. 167 00:08:58,320 --> 00:09:03,030 I was going to redo that section of the video, but I thought not because you are going to run into 168 00:09:03,030 --> 00:09:05,610 a lot of errors with the teleport service. 169 00:09:05,610 --> 00:09:09,330 It's just kind of riddled with errors and they're changing things all the time. 170 00:09:09,330 --> 00:09:11,770 So it's important to be able to troubleshoot this. 171 00:09:11,790 --> 00:09:14,130 I'm going to go to my other world. 172 00:09:15,270 --> 00:09:16,230 There you go. 173 00:09:16,260 --> 00:09:17,580 I brought that up. 174 00:09:17,970 --> 00:09:19,890 Go to your game settings. 175 00:09:19,890 --> 00:09:23,490 If you'll remember, our original place was public. 176 00:09:23,490 --> 00:09:26,400 If you don't remember, our original place was public. 177 00:09:26,550 --> 00:09:28,500 I'm going to go to permissions. 178 00:09:29,330 --> 00:09:32,330 And our new place is friends. 179 00:09:32,360 --> 00:09:33,710 I don't know why. 180 00:09:34,010 --> 00:09:35,540 Just make out public. 181 00:09:35,780 --> 00:09:36,350 Hit. 182 00:09:36,350 --> 00:09:37,460 Save. 183 00:09:38,140 --> 00:09:42,060 Go to file published roadblocks. 184 00:09:42,070 --> 00:09:43,750 Let's go back to our original world. 185 00:09:43,750 --> 00:09:45,070 Check everything there. 186 00:09:47,000 --> 00:09:50,060 We'll go to game settings on the original world. 187 00:09:50,810 --> 00:09:53,360 Permission public. 188 00:09:53,390 --> 00:09:54,680 That's fine. 189 00:09:54,680 --> 00:09:57,990 And we have code in there too, so let's go ahead and publish this. 190 00:09:58,010 --> 00:10:00,740 You have to publish everything if you're going to use the player. 191 00:10:00,740 --> 00:10:02,300 And I don't think I did that. 192 00:10:02,840 --> 00:10:06,260 And you have to make sure that the permissions match, too. 193 00:10:06,290 --> 00:10:08,570 Now, let's go to our website. 194 00:10:09,470 --> 00:10:11,840 Here's our creator dashboard. 195 00:10:12,140 --> 00:10:14,210 And we selected the game already. 196 00:10:14,210 --> 00:10:18,080 This is up from the last video I'm going to view on roadblocks. 197 00:10:18,680 --> 00:10:20,450 And I'm going to hit the play button. 198 00:10:20,450 --> 00:10:24,470 And I pause this so that you don't have to wait for it to come up. 199 00:10:24,890 --> 00:10:28,010 So now I'm in my world and this is the player. 200 00:10:28,010 --> 00:10:32,150 This is not Roadblock studio, but I still want to see the developer console. 201 00:10:32,150 --> 00:10:33,820 So notice my mouse. 202 00:10:33,830 --> 00:10:37,660 I'm going to go to this box in the upper left corner, the little roadblock symbol. 203 00:10:37,670 --> 00:10:38,840 Let's click on that. 204 00:10:39,500 --> 00:10:43,250 Open it up and then I'm going to go to settings. 205 00:10:43,880 --> 00:10:49,310 In settings, I'm going to scroll down to the bottom where it says Developer console I'm going to hit 206 00:10:49,310 --> 00:10:50,120 open. 207 00:10:51,270 --> 00:10:51,980 Cool. 208 00:10:51,990 --> 00:10:54,090 And this is the client side. 209 00:10:54,120 --> 00:10:55,270 See that blue button? 210 00:10:55,290 --> 00:11:02,460 I'm going to go to server side, click on that and I can see the messages coming out the server side. 211 00:11:02,490 --> 00:11:06,960 I want to move this a little bit, so I'm going to go up to this bar at the top. 212 00:11:06,960 --> 00:11:10,770 You have you're paying value and your memory usage drag. 213 00:11:10,770 --> 00:11:12,930 This will make it a little smaller. 214 00:11:12,930 --> 00:11:16,560 So I'm down here at the bottom, there's a little black box in the bottom. 215 00:11:16,710 --> 00:11:18,270 We can make that a little smaller. 216 00:11:19,300 --> 00:11:19,590 All right. 217 00:11:19,600 --> 00:11:24,430 Now, we don't have any printouts we could other than the health, but for our teleportation. 218 00:11:24,430 --> 00:11:27,580 Let's see what happens when we click this green button. 219 00:11:28,650 --> 00:11:30,540 And it's going to take a minute, but that's all right. 220 00:11:30,540 --> 00:11:33,510 We'll have a UI in place eventually. 221 00:11:34,670 --> 00:11:36,890 And here's our Battle Royale. 222 00:11:36,920 --> 00:11:38,210 That's pretty cool. 223 00:11:38,510 --> 00:11:40,780 So we teleported to a new place. 224 00:11:40,790 --> 00:11:43,640 We should have put, like, a tree in it or something, so we'd know we were there. 225 00:11:43,640 --> 00:11:45,410 But you get the idea. 226 00:11:45,440 --> 00:11:49,670 Now what we need to do is get a whole group to teleport over. 227 00:11:49,670 --> 00:11:55,550 And we also need to have the UI people can join, people can get out, things like that. 228 00:11:55,550 --> 00:11:59,510 And our weapons, we've got to bring our weapons over and we've got to bring our points over. 229 00:11:59,510 --> 00:12:01,730 So that's all pretty cool stuff. 230 00:12:01,730 --> 00:12:06,260 Let's go ahead and get started with that in the next video.